package com.ciwong.mobilelib.utils.toast;

import android.content.Context;
import android.view.Gravity;

import com.ciwong.mobilelib.R;
import com.ciwong.mobilelib.application.BaseApplication;

public class ToastCustomView extends BaseOToast {
    private static ToastCustomView   IINSTANCE = null;

    private ToastCustomView() {
    }

    public static ToastCustomView getInstance() {
        if (IINSTANCE == null) {
            IINSTANCE = new ToastCustomView();
        }
        return IINSTANCE;
    }

    public void toastShowCenterSuccess( CharSequence content, long duration) {
        toastShow(BaseApplication.getInstance(), content, duration,R.mipmap.ic_success,null, Gravity.CENTER, 0, 0);
    }

    public void toastShowTop(Context context, CharSequence content, long duration) {
        toastShow(BaseApplication.getInstance(), content, duration, R.mipmap.ic_success,null, Gravity.TOP, 0, 0);
    }

    public void toastShowBottom(Context context, CharSequence content, long duration) {
        toastShow(BaseApplication.getInstance(), content, duration, R.mipmap.ic_success,null, Gravity.BOTTOM, 0, 0);
}

}
